package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.CategoryBrandDto;
import com.atguigu.spzx.model.entity.product.Brand;
import com.atguigu.spzx.model.entity.product.CategoryBrand;

import java.util.List;

public interface CategoryBrandMapper {
    /**
     * 根据id查询所有分类品牌信息
     * @param categoryBrandDto 分类品牌id请求对象
     * @return
     */
    List<CategoryBrand> selectCategoryBrandAll(CategoryBrandDto categoryBrandDto);

    /**
     * 新增
     * @param categoryBrand
     */
    void insertCategoryBrand(CategoryBrand categoryBrand);

    /**
     * 修改
     * @param categoryBrand
     */
    void updateCategoryBrandById(CategoryBrand categoryBrand);

    void deleteById(Long id);

    List<Brand> selectBrandByCategoryId(Long categoryId);
}
